package com.kaili.basic.service.impl;

/**
 * Created by xxx on 2019-03-07.
 */

import com.kaili.basic.mapper.OutboundProductMapper;
import com.kaili.basic.pojo.entity.OutboundProduct;
import com.kaili.basic.service.OutboundProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xxx
 * @Copyright: Copyright (c) 2017
 * @Company: 杭州凯立通信有限公司
 */
@Service
public class OutboundProductServiceImpl implements OutboundProductService {
    @Autowired
    OutboundProductMapper outboundProductMapper;

    @Override
    public int addOutboundProduct(OutboundProduct outboundProduct) {
        return outboundProductMapper.addOutboundProduct(outboundProduct);
    }

    @Override
    public int deleteOutboundProduct(OutboundProduct outboundProduct) {
        return outboundProductMapper.deleteOutboundProduct(outboundProduct);
    }

    @Override
    public List<OutboundProduct> getOutboundProductList(Long applyId) {
        return outboundProductMapper.getOutboundProductList(applyId);
    }

    @Override
    public OutboundProduct getOutboundProductById(Long id) {
        return outboundProductMapper.getOutboundProductById(id);
    }
}
